package com.edward.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class StatAc {

	private int id;
	
	private Date date;
	
	private String code;
	
	private String company;
	
	private double money;
	
	private double bail;
	
	private double balance;
	
	private String term;
	
	private Date acDate;
	
	private Date repayDate;
	
	private Date saveDate;
	
	private String acCode;
	
	private double bailRate;
	
	private String saveDsc;
	
	private Date lastDate;
	
	private Stat stat;

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Temporal(TemporalType.DATE)
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public double getBail() {
		return bail;
	}

	public void setBail(double bail) {
		this.bail = bail;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	public String getTerm() {
		return term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	@Temporal(TemporalType.DATE)
	public Date getAcDate() {
		return acDate;
	}

	public void setAcDate(Date acDate) {
		this.acDate = acDate;
	}

	@Temporal(TemporalType.DATE)
	public Date getRepayDate() {
		return repayDate;
	}

	public void setRepayDate(Date repayDate) {
		this.repayDate = repayDate;
	}

	@Temporal(TemporalType.DATE)
	public Date getSaveDate() {
		return saveDate;
	}

	public void setSaveDate(Date saveDate) {
		this.saveDate = saveDate;
	}

	public String getAcCode() {
		return acCode;
	}

	public void setAcCode(String acCode) {
		this.acCode = acCode;
	}

	public double getBailRate() {
		return bailRate;
	}

	public void setBailRate(double bailRate) {
		this.bailRate = bailRate;
	}

	public String getSaveDsc() {
		return saveDsc;
	}

	public void setSaveDsc(String saveDsc) {
		this.saveDsc = saveDsc;
	}

	@Temporal(TemporalType.DATE)
	public Date getLastDate() {
		return lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

	@ManyToOne
	@JoinColumn(name="STAT_ID")
	public Stat getStat() {
		return stat;
	}

	public void setStat(Stat stat) {
		this.stat = stat;
	}
	
	
}
